from __future__ import absolute_import, division, print_function, unicode_literals

import datetime  # For datetime objects
import os.path  # To manage paths
import sys  # To find out the script name (in argv[0])

# Import the backtrader platform
import backtrader as bt

import MySQLDataFeed as mdf
import SimpleMySqlClass as smc
import talib as talib
import numpy as np


def log(out_put):
    print("%s", out_put)


class TowMaStrategy(bt.Strategy):
    params = (
        ("period_sma5", 5),
        ("period_sma10", 10),
        ("period_sma20", 20),
        ("period_sma60", 60),
    )

    def __init__(self):
        pass

    def next(self):
        pass

    def notify_order(self, order):
        pass

    def notify_trade(self, trade):
        pass

    def stop(self):
        pass


class ThreeMaStrategy(bt.Strategy):
    params = (
        ("period_sma5", 5),
        ("period_sma10", 10),
        ("period_sma20", 20),
        ("period_sma60", 60),
    )

    def __init__(self):
        pass

    def next(self):
        pass

    def notify_order(self, order):
        pass

    def notify_trade(self, trade):
        pass

    def stop(self):
        pass
